package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetBusheetMapper;
import com.ruoyi.system.domain.HatchetBusheet;
import com.ruoyi.system.service.IHatchetBusheetService;
import com.ruoyi.common.support.Convert;

/**
 * 数据权限列 服务层实现
 * 
 * @author ruoyi
 * @date 2019-03-14
 */
@Service
public class HatchetBusheetServiceImpl implements IHatchetBusheetService 
{
	@Autowired
	private HatchetBusheetMapper hatchetBusheetMapper;

	/**
     * 查询数据权限列信息
     * 
     * @param id 数据权限列ID
     * @return 数据权限列信息
     */
    @Override
	public HatchetBusheet selectHatchetBusheetById(String id)
	{
	    return hatchetBusheetMapper.selectHatchetBusheetById(id);
	}
	
	/**
     * 查询数据权限列列表
     * 
     * @param hatchetBusheet 数据权限列信息
     * @return 数据权限列集合
     */
	@Override
	public List<HatchetBusheet> selectHatchetBusheetList(HatchetBusheet hatchetBusheet)
	{
	    return hatchetBusheetMapper.selectHatchetBusheetList(hatchetBusheet);
	}
	
    /**
     * 新增数据权限列
     * 
     * @param hatchetBusheet 数据权限列信息
     * @return 结果
     */
	@Override
	public int insertHatchetBusheet(HatchetBusheet hatchetBusheet)
	{
	    return hatchetBusheetMapper.insertHatchetBusheet(hatchetBusheet);
	}
	
	/**
     * 修改数据权限列
     * 
     * @param hatchetBusheet 数据权限列信息
     * @return 结果
     */
	@Override
	public int updateHatchetBusheet(HatchetBusheet hatchetBusheet)
	{
	    return hatchetBusheetMapper.updateHatchetBusheet(hatchetBusheet);
	}

	/**
     * 删除数据权限列对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetBusheetByIds(String ids)
	{
		return hatchetBusheetMapper.deleteHatchetBusheetByIds(Convert.toStrArray(ids));
	}
	
}
